package com.Logistics.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 组织机构表
 */
@Data
@TableName("pd_core_org")
public class Core_org implements Serializable {
    /**
     * Serializable version UID for object serialization.
     */
    private static final long serialVersionUID = 613707233095967503L;

    /**
     * ID
     */
    @TableField("id")
    private String id;

    /**
     * 名称
     */
    @TableField("name")
    private String name;

    /**
     * 缩写
     */
    @TableField("abbreviation")
    private String abbreviation;

    /**
     * 父级ID
     */
    @TableField("parent_id")
    private String parent_id;

    /**
     * 组织类型
     */
    @TableField("org_type")
    private Integer org_type;

    /**
     * 省份ID
     */
    @TableField("province_id")
    private String province_id;

    /**
     * 城市ID
     */
    @TableField("city_id")
    private String city_id;

    /**
     * 县区ID
     */
    @TableField("county_id")
    private String county_id;

    /**
     * 地址
     */
    @TableField("address")
    private String address;

    /**
     * 联系电话
     */
    @TableField("contract_number")
    private String contract_number;

    /**
     * 管理者ID
     */
    @TableField("manager_id")
    private long manager_id;

    /**
     * 树路径
     */
    @TableField("tree_path")
    private String tree_path;

    /**
     * 排序值
     */
    @TableField("sort_value")
    private Integer sort_value;

    /**
     * 状态
     */
    @TableField("status")

    private Boolean status;

    /**
     * 描述
     */
    @TableField("`describe`")
    private String describe;

    /**
     * 纬度
     */
    @TableField("`latitude`")
    private String latitude;

    /**
     * 经度
     */
    @TableField("`longitude`")
    private String longitude;

    /**
     * 营业时间
     */
    @TableField("`business_hours`")
    private String business_hours;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date create_time;

    /**
     * 创建人ID
     */
    @TableField(value = "create_user")
    private long create_user;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date update_time;

    /**
     * 更新人ID
     */
    @TableField("update_user")
    private long update_user;


}
